Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAB: Integrate staging tests for the .every method #4074

Merged
merged 10 commits into from
Jun 28, 2024

Conversation

ioannad
Copy link
Contributor

@ioannad ioannad commented May 3, 2024

of Array.prototype and TypedArray.prototype

This is part of PR #3888 to make reviewing easier. Includes changes to use the helper ./harness/resizableArrayBufferUtils.js

@ioannad ioannad requested a review from a team as a code owner May 3, 2024 16:27
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the original PR have any tests for every() on resizable buffers that don't shrink or grow? Most of the other PRs have had these tests.

@ioannad
Copy link
Contributor Author

ioannad commented Jun 24, 2024

Did the original PR have any tests for every() on resizable buffers that don't shrink or grow? Most of the other PRs have had these tests.

@ptomato I just noticed I missed this comment. So indeed there were forgotten .../resizable-buffer.js tests as in the other PRs. Adding these test files with the next commit.

ioannad added a commit to ioannad/test262 that referenced this pull request Jun 24, 2024
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One typo that got into the revisions, feel free to merge after fixing that.

@ioannad
Copy link
Contributor Author

ioannad commented Jun 28, 2024

@ptomato reverted the scope changes but added documentation to makes things clearer and avoid potential future mistakes with the top level variables used.

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

ioannad and others added 10 commits June 28, 2024 16:28
of Array.prototype and TypedArray.prototype

This is part of PR tc39#3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
New approach replaces ...Helper with CollectResize to make the tests easier to understand.
In particular:
- Replaced the need for '...Helper' abstractions with a more descriptive
  function 'ResizeBufferMidIteration', which the .every method can call
  directly.
- Moved 'let values' back outside of the loops, together with a function
  definition 'ResizeBufferMidIteration' to persist the side effects that
  'CollectValuesAndResize' has on 'values' but without having to define
  this inside every loop.
  + So this reverts commit d9a2bac and
  + this reverts commit 0bc2d66.
- Added documentation.
@ptomato ptomato merged commit d2596e2 into tc39:main Jun 28, 2024
8 checks passed
@ioannad ioannad deleted the RAB-test-method-every branch July 8, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants